@extends('admin.base')

@section('title') 查看文章 @endsection

@section('caption')
    查看文章
@endsection

@section('content')
    <table class="table datatable-save-state">
        <tr>
            <th>id</th>
            <th>name</th>
            <th>slider</th>
            <th>order</th>
            <th>created_at</th>
            <th>updated_at</th>
            <th>操作</th>
        </tr>
   @foreach($sliders as $slider)
        <tr>
            <th>{{$slider->id}}</th>
            <th>{{$slider->name}}</th>
            <th><img src="/{{$slider->slider}}" style="width: 40px;height: 40px"></th>
            <th>{{$slider->order}}</th>
            <th>{{$slider->created_at}}</th>
            <th>{{$slider->updated_at}}</th>
            <td class="text-center">
                <ul class="icons-list">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-menu9"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-right">
                            <li><a href="updateslider?id={{$slider->id}}"><i class="icon-upload text-green-800"></i>更新</a></li>
                            <li><a href="deleteslider?id={{$slider->id}}"><i class="icon-cross2 text-danger"></i>移除</a></li>
                        </ul>
                    </li>
                </ul>
            </td>
        </tr>
        @endforeach
    </table>
@endsection
